package com.ext.portlet.registration.service.impl;

import com.ext.portlet.registration.service.base.StudentServiceBaseImpl;
import com.liferay.portal.PortalException;
import com.liferay.portal.SystemException;
import com.liferay.portlet.imagegallery.model.IGImage;
import com.liferay.portlet.imagegallery.service.IGImageLocalServiceUtil;

public class StudentServiceImpl extends StudentServiceBaseImpl {
	
	public void approveImage(Long imageId) throws SystemException, PortalException {
		IGImage image = IGImageLocalServiceUtil.getIGImage(imageId);
		image.setDescription("1");
		IGImageLocalServiceUtil.getService().updateIGImage(image);
	}
	
	public void deleteImage(Long imageId) throws SystemException, PortalException {
		IGImage image = IGImageLocalServiceUtil.getIGImage(imageId);
		image.setDescription("2");
		IGImageLocalServiceUtil.getService().updateIGImage(image);
	}
}
